import api from './common/config.js'
let Getajax = api.Getajax
//http://152.136.195.147/api/api/zhang/Recruitinformation/get_type_list
//top切换
export function typeList(){
	return Getajax({
				url:'/api/zhang/Recruitinformation/get_type_list',
				type:'GET',
				data:{}
			})
}

//http://152.136.195.147/api/api/zhang/Recruitinformation/get_information_list
//获取选项卡内容
export function toplistcat(type_id){
	return Getajax({
				url:'/api/zhang/Recruitinformation/get_information_list',
				type:'GET',
				data:{
					type_id: type_id,
					page: 1,
					pageSize: 10,
				}
			})
}

//http://152.136.195.147/api/api/zhang/Current_politics/get_type_list
//获取时政热点
export function politics(){
	return Getajax({
				url:'/api/zhang/Current_politics/get_type_list',
				type:'POST',
				data:{}
			})

}
//http://152.136.195.147/api/api/zhang/Current_politics/get_current_list
//收取时政热点内容
export function politicsList(type_id){
	return Getajax({
				url:'/api/zhang/Current_politics/get_current_list',
				type:'POST',
				data:{
					type_id: type_id,
					page: 1,
					pageSize: 10,
				}
			})
}

//http://152.136.195.147/api/api/zhang/Experience_skill/get_type_list
//获取经验技巧分类
export function skilltype(){
	return Getajax({
				url:'/api/zhang/Experience_skill/get_type_list',
				type:'POST',
				data:{}
			})
}
//http://152.136.195.147/api/api/zhang/Experience_skill/get_skill_list
//获取经验技巧内容
export function skillList(skill_id){
	return Getajax({
				url:'/api/zhang/Experience_skill/get_skill_list',
				type:'POST',
				data:{
					skill_id: skill_id,
					page: 1,
					pageSize: 10,
				}
			})
}
//http://152.136.195.147/api/talk/index
//获取职场话题分类
export function talkindex(type){
	return Getajax({
				url:'/api/talk/index',
				type:'POST',
				data:{
					type: type,
					page: 1,
					limit: 10,
				}
			})
}
